home *** CD-ROM | disk | FTP | other *** search
- Path: news.sprintlink.net!datalytics!usenet
- From: Rob Stewart <stew@datalytics.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Calling a bmp as an opening logo with C++.
- Date: Tue, 09 Apr 1996 17:41:46 -0400
- Organization: Datalytics, Inc
- Message-ID: <316AD99A.1999@datalytics.com>
- References: <316A5E8A.3B9C@magi.com>
- NNTP-Posting-Host: 204.62.224.71
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (WinNT; I)
-
- Hans A. Vander Wal wrote:
- >
- > Does anyone know the procedure to call an external bmp to preload as a program Logo??
- > An example of this action would be as in MS-Word, Wordperfect, Powerbuilder...when the
- > user clicks on the program Icon the first thing the user sees is the program Logo. This
- > routine runs for about 5-10 seconds then the application runs.
- >
- > We can't seem to find any documentation that covers this element in Visual C++
- > programming.
- >
-
- We wrote a class that handles all that. The splash screen lasts
- a predetermined time or disappears earlier when the object goes
- out of scope, depending upon how you construct it. The bitmap
- appears in a separate window.
-
- This requires the collaboration of two classes. One controls
- the window and destroys it when a timer expires. This object
- must exist on the heap so the splash screen window survives the
- destruction of the outer class, if so configured. The outer
- class' dtor, if so configured, (and possibly another mf)
- instructs the window mgr class to destroy the window.
-
- Synchronization is an issue, since the window mgr class can
- destroy the window due to a timeout or instruction from the
- outer class.
-
- --
- Robert Stewart | My opinions are usually my own.
- Datalytics, Inc. | stew@datalytics.com
-